﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using System.Web.Routing;
using NHibernate;
using Mindfor.Web.Config;

namespace Mindfor.Web.Modules.Widgets
{
	/// <summary>
	/// Enables widgets in Site.
	/// </summary>
	public class WidgetsModule : ModuleBase
	{
		/// <summary>
		/// Registers module. For example, custom routes.
		/// </summary>
		/// <param name="info">Registration data.</param>
		public override void Register(ModuleRegistrationData info)
		{
			info.GlobalFilters.Add(new WidgetsLoadFilter());
			base.Register(info);
		}
	}
}
